/* 商城页面样式 */
.storeContainer {
  background: #f5f5f5;
  min-height: 100vh;
  padding-bottom: 10px;
  overflow-x: hidden;
}

/* 搜索栏样式 */
.searchSection {
  padding: 5px 5px;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.searchBar {
  display: flex;
  align-items: center;
  background: #fff;
  border: 1px solid #ff4d4f;
  border-radius: 20px;
  padding: 1px 2px;
}

.searchIcon {
  color: #999;
  margin-right: 5px;
  font-size: 14px;
  
}

.searchInput {
  flex: 1;
  border: none;
  outline: none;
  font-size: 12px;
  color: #333;
}

.searchInput::placeholder {
  color: #999;
}

.searchBtn {
  background: #ff4d4f;
  color: #fff;
  border: none;
  border-radius: 14px;
  padding: 3px 10px;
  font-size: 12px;
  border: 1px solid #ff4d4f;
  margin-left: 8px;
}

/* 主广告横幅 */
.bannerSection {
  padding: 5px;
  border-radius: 15px;
}



/* 服务保障 */
.serviceSection {
  background: #e3be0649;
  padding: 5px;
  margin: 0px 10px;
  border-radius: 8px;
}

.serviceGrid {
  display: flex;
  justify-content: space-around;
}

.serviceItem {
  display: flex;
  align-items: center;
  gap: 5px;
}

.serviceIcon {
  font-size: 16px;
}

.serviceText {
  font-size: 11px;
  color: #6d4304b1;
  font-weight: 500;
}

/* 分类网格 */
.categorySection {
  background: #fff;
  margin: 10px 15px;
  border-radius: 8px;
  padding: 15px;
}

.categoryContainer {
  overflow-x: auto;
  overflow-y: hidden;
  margin-bottom: 10px;
  /* 隐藏滚动条但保持滚动功能 */
  scrollbar-width: none;
  -ms-overflow-style: none;
  /* 限制容器宽度，一页只显示5个数据 */
  max-width: 100%;
}

.categoryContainer::-webkit-scrollbar {
  display: none;
}

.categoryGrid {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 7px;
  width: max-content;

}

.categoryItem {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  width: 47px;
  flex-shrink: 0;
    padding: 5px 0;
}

.categoryIcon {
  font-size: 20px;
  margin-bottom: 2px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.categoryText {
  font-size: 10px;
  color: #333;
  text-align: center;
  font-weight: 500;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.categoryIndicator {
  width: 30px;
  height: 3px;
  background: #ff4d4f;
  border-radius: 3px;
  margin: 0 auto;
}
/* 热门商品 */
.hotSection {
  background: #fff;
  margin: 10px 15px;
  border-radius: 8px;
  padding: 15px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.sectionHeader {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.titleWithIcon {
  display: flex;
  align-items: center;
  gap: 6px;
}

.titleIcon {
  color: #ff4d4f;
  font-size: 16px;
}

.sectionTitle {
  font-size: 14px;
  color: #333;
  margin: 0;
}

.moreLink {
  display: flex;
  align-items: center;
  gap: 4px;
  color: #999;
  font-size: 12px;
}

.productGrid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.productCard {
  background: #fff;
  border: 1px solid #f0f0f0;
  border-radius: 8px;
  padding: 10px;
  position: relative;
}

.productImage {
  position: relative;
  margin-bottom: 8px;
}

.imagePlaceholder {
  width: 100%;
  height: 80px;
  background: #f5f5f5;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}

.likeBtn {
  position: absolute;
  top: 5px;
  right: 5px;
  background: rgba(255,255,255,0.8);
  border-radius: 50%;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ff4d4f;
  font-size: 12px;
}

.productInfo {
  text-align: left;
}

.productName {
  font-size: 12px;
  color: #333;
  margin: 0 0 6px 0;
  font-weight: 500;
  line-height: 1.3;
}

.priceRow {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
}

.currentPrice {
  color: #ff4d4f;
  font-size: 14px;
  font-weight: bold;
}

.originalPrice {
  color: #999;
  font-size: 10px;
  text-decoration: line-through;
}

.salesInfo {
  color: #999;
  font-size: 10px;
  margin: 0;
}

/* 品牌专区 */
.brandSection {
  background: #fff;
  margin: 10px 15px;
  border-radius: 8px;
  padding: 15px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.brandScroll {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 5px;
  max-width: 100%;
}

.brandInfo {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.brandName {
  font-size: 11px;
  color: #333;
  font-weight: 500;
}

.brandDesc {
  font-size: 9px;
  color: #999;
}





/* 响应式设计 */
@media (max-width: 375px) {
  .categoryGrid {
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
  }
  
  .categoryIcon {
    font-size: 20px;
  }
  
  .categoryText {
    font-size: 10px;
  }
  
  .banner {
    padding: 15px;
  }
  
  .benefitItem {
    font-size: 14px;
  }
  
  .price {
    font-size: 16px;
  }
}

/* 滚动条样式 */
.brandList::-webkit-scrollbar {
  height: 3px;
}

.brandList::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 2px;
}

.brandList::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 2px;
}

.brandList::-webkit-scrollbar-thumb:hover {
  background: #999;
}
.tabsContainer{
  margin: 10px 15px;
}

/* 药品网格样式 */
.drugGrid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  padding: 15px 0;
  background: #f5f5f5;
  border-radius: 8px;
  margin-top: 10px;
}

.noDrugs {
  grid-column: 1 / -1;
  text-align: center;
  color: #999;
  font-size: 14px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

/* 响应式设计 */
@media (max-width: 480px) {
  .drugGrid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    padding: 10px 0;
  }
}

@media (min-width: 768px) {
  .drugGrid {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }
}

@media (min-width: 1024px) {
  .drugGrid {
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
  }
}
